package com.zf.yichat.mapper;

import com.zf.yichat.base.FsMapper;
import com.zf.yichat.dto.UserWithdrawDto;;
import com.zf.yichat.model.UserWithdraw;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserWithdrawMapper extends FsMapper<UserWithdraw> {

    /**
     * 查询当日已审核的提现金额
     * @return
     */
    Integer queryCurrWithdrawMoney();


    List<UserWithdrawDto> selectList(@Param("status") Integer status, @Param("userId") Long userId,
                                     @Param("checkTime") String checkTime, @Param("recommendCode") String recommendCode);

    /**
     * 根据userId更新用户审核表的上级邀请码
     * @param userId
     * @param recommendCode
     * @return
     */
    int updateParentCodeByUserId(@Param("userId") Long userId, @Param("recommendCode") String recommendCode);
}